package com.codes.service.impl;

import com.codes.dao.UserRoleMapper;
import com.codes.model.UserRole;
import com.codes.service.UserRoleSV;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Date 2020/5/27 18:42
 * @Created by peanut
 */
@Service
public class UserRoleImpl implements UserRoleSV {

    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(UserRole record) {
        return 0;
    }

    @Override
    public int insertSelective(UserRole record) {
        return userRoleMapper.insertSelective(record);
    }

    @Override
    public UserRole selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(UserRole record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(UserRole record) {
        return 0;
    }

    @Override
    public int updateByUserId(Map<String, Object> map) {
        return userRoleMapper.updateByUserId(map);
    }
}